<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="kr.cadis.clms.dao.HolydayDao, kr.cadis.clms.model.Holyday, java.sql.Date" %>

<%
	Date thisDay = Date.valueOf(request.getParameter("thisDay"));
	HolydayDao holydayDao = new HolydayDao();
	Holyday holyday = holydayDao.selectByDate(thisDay);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form method = "post" action = "UpdateDo.jsp">
<table border = "1">
	<tr>
		<th>날짜</th>
		<th><input name = "thisDay" value="<%= holyday.getThisDay() %>" readonly></th>
	</tr>
	<tr>
		<th>사유</th>
		<th><input name = "whatDay" value="<%= holyday.getWhatDay() %>"></th>
	</tr>	
</table>
<input type = "submit">
</form>
</body>
</html>